// import req from "../../req";
import service from '@/utils/request-java.js'
// import tool from '@/utils/tool';

// 获取设备列表
export function DeviceList(data) {
	var a = {
		// id: 1,
		limit:10
	}
	return service({
		url: `/OaDeviceController/list`,
		method: 'get',
		params: { ...data, ...a }
	});
}

// 新增设备
export function AddDevice(data) {
	console.log(data, 21);
	var a = {
		id: 1
	}
	return service({
		url: `/OaDeviceController/add`,
		method: 'post',
		params: { ...data, ...a }
	});
}


// 编辑设备
export function EditDevice(data) {
	// console.log(data, 37);
	var a = {
		// image:'https://puqinzc.oss-cn-beijing.aliyuncs.com/1670570654583png'
	}
	return service({
		url: `/OaDeviceController/edit`,
		method: 'post',
		params: { ...data, ...a }
	});
}


// 删除设备
export function DeleteDevice(data) {
	var a = {
		// id: 1
	}
	return service({
		url: `/OaDeviceController/remove`,
		method: 'delete',
		params: { ...data, ...a }
	});
}




